var tmp = `
<%var ctlTypes = ['rx-textarea', 'rx-group', 'rx-user', 'rx-upload', 'rx-quill-editor', 'rx-radio','rx-form-signbox', 'rx-image','rx-address', 'rx-button-edit', 'rx-map', 'rx-checkbox-list', 'rx-date-range', 'rx-tree-select','rx-relate-process']%>
   <div class="rx-attrs-field" v-if="fieldShow('<%=attr.name%>','<%=subname%>')">
       <%if(attr.group){%>
        <div>
            <div class="attrs-apply">
            <div class="attrs-heard"><%=attr.name%></div>
            <% for(var j=0;j<attr.list.length;j++){
                 var boAttr=attr.list[j];
            %>
            <div class="<%if(boAttr.break || ctlTypes.includes(boAttr.control)){%> rx-fieid fieid-line <%} else {%>rx-fieid<%}%>" >
                  <div>
                    <rx-valid :readonly="readonly" :metadata="metadata" subname="<%=subname%>" :data="data" :attrList="attrList"  attrAlias="<%=boAttr.name%>"/>
                  </div>
                  
                   <div class="<%if(boAttr.break){%> fieid-line-group <%} else {%>fieid-group single_input<%}%>" >
                    <<%=boAttr.control%> v-model="data.<%=boAttr.name%>" :attrList="attrList" :permission="permission" :metadata="metadata" subname="<%=subname%>"
                              :readonly="readonly" :data="data" attrAlias="<%=boAttr.name%>" />
                  </div>
                  <div class="fieid-readonly" v-if="!readonly && validVtype('<%=boAttr.name%>','<%=type%>')&&!validVtype('<%=boAttr.name%>','<%=type%>').success">
                    {{validVtype('<%=boAttr.name%>','<%=subname%>').msg}}
                  </div>
                </div>
             <%}%>
            </div>
        </div>
    <%}else{%>
     <div  class="<%if(attr.break || ctlTypes.includes(attr.control)){%> rx-fieid fieid-line <%} else {%>rx-fieid<%}%>" >
          <div>
            <rx-valid :readonly="readonly" :metadata="metadata" subname="<%=subname%>" :data="data" :attrList="attrList"  attrAlias="<%=attr.name%>"/>
          </div>
          
           <div class="<%if(attr.break){%> fieid-line-group <%} else {%>fieid-group single_input<%}%>" >
            <<%=attr.control%> v-model="data.<%=attr.name%>" :attrList="attrList" :permission="permission" :metadata="metadata" subname="<%=subname%>"
                      :readonly="readonly" :data="data" attrAlias="<%=attr.name%>" />
          </div>
          <div class="fieid-readonly" v-if="!readonly && validVtype('<%=attr.name%>','<%=type%>')&&!validVtype('<%=attr.name%>','<%=type%>').success">
            {{validVtype('<%=attr.name%>','<%=subname%>').msg}}
          </div>
     </div>
    <%}%>
   </div>
`
export default tmp;
